--- title: "PHP troubleshooting guide for common errors" hide_excerpt: true ---
mksunitha
Here is a troubleshooting guide for PHP errors on Azure app service.

5xx Errors

Checkout additional articles on PHP troubleshooting.

Performance Issues

Best way to identify your application performance issues, is to profile your application. Use Xdebug profiler to profile your application. The most common reasons that could impact performance are:

Security Issues

<?php
$mysqli = new mysqli("localhost", "user", "password", "database");
if ($mysqli->connect_errno) {
echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error;
}
echo $mysqli->host_info . "\n";
?>